<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>상품목록</title>
<link href="/Jangdolbaeng2/css/bootstrap.min.css" rel="stylesheet">
<link href="/Jangdolbaeng2/css/customer/common.css" rel="stylesheet">
<script src="/Jangdolbaeng2/js/jquery-1.11.1.js"></script>
<script src="/Jangdolbaeng2/js/bootstrap.min.js"></script>
<style type="text/css">
table {
	text-align: center;
}
</style>
<script type="text/javascript">
$(document).ready(function(){
	
});	

function productfunc(productseq)
{
	location.href = "shopProductDetail.action?productVO.product_seq=" + productseq;
}

</script>
</head>
<body>
<div id="header">
<%@ include file="adminHeader.jsp" %>
</div>

<div class="container">
	<div id="orderDetail" align="center">	
		<h3 align="center" style="margin-top: 50px; margin-bottom: 20px;"><span class="glyphicon glyphicon-list"></span> <span style="font-family: anew">상품목록</span></h3>
	
		<table class="table table-striped table-hover table-bordered" style="text-align: center; width: 300px;">
			<td align="center" style="font-weight: bold"><s:property value="name" /></td>
		</table>
	
		<br><br>
	
		<table class="table table-striped table-hover table-bordered" style="text-align: center; width: 450px;">
			<s:hidden name="productVO.product_seq" value="%{productVO.product_seq}" />
			<s:hidden name="productVO.shop_seq" value="%{productVO.shop_seq}" />
		
			<tr class="success" style="font-weight: bold">
				<td>상품번호</td>
				<td>상품명</td>
				<td>상품등록날짜</td>
			</tr>
			
			
			<s:iterator value="productList">
			
			<tr>
			<td><a style="color: blue;" href="javascript:productfunc(<s:property value="product_seq" />)"><s:property value="product_seq" /></a></td>
			<td><s:property value="product_name" /></td>
			<td><s:property value="inputdate" /></td>
			</tr>
		
			</s:iterator>
		</table>
	</div>
</div><!-- end of container -->
</body>
</html>